import google.generativeai as genai


### 入门教程  https://ai.google.dev/gemini-api/docs/ai-studio-quickstart?hl=zh-cn
genai.configure(api_key="AIzaSyBJoz7BvdFgWTBwzcu-0xWpJKfEJOR6vPM")
model = genai.GenerativeModel('models/gemini-1.5-pro-latest')

chat = model.start_chat()
response = chat.send_message("Hello")
print(response.text)

response = chat.send_message("what are you name?")
print(response.text)

print(chat.history)

